<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>基本信息</title>
    <link href="css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="jquery-easyui-1.5.3/themes/bootstrap/easyui.css">
    <link href="jquery-easyui-1.5.3/themes/icon.css" rel="stylesheet">
    <link href="css/basic_info.css" rel="stylesheet">
    <link rel="stylesheet" href="css/xk.css">
    <script type="text/javascript" src="font_jjkmvgsdpk/iconfont.js"></script>
    <link rel="stylesheet" href="font_jjkmvgsdpk/iconfont.css">
    <link href="css/process.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="xk_submit" style="height: 24px;background-color: #eeeeee;text-align: center;">
        <button class="easyui-linkbutton" type="button" id="jbxx_cancel" iconCls="icon-cancel" style="height: 24px;margin-left: 5px;">取消</button>
        <button class="easyui-linkbutton" type="button" iconCls="icon-save" style="height: 24px;margin-left: 5px;">保存</button>
    </div>
    <div class="content">
        <form>
            <div class="column"><span class="current">案件信息</span></div>
            <table class="xk_table">
                <tr>
                    <td class="xk_label">案(事)件受理号<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">案件编号<font>*</font></td>
                    <td class="td_input" name="ajbh"></td>
                    <td class="xk_label">案件类别<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">发案区划<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">是否命案<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">是否刑案<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">发案时间<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">破案时间<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">经度<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">纬度<font>*</font></td>
                    <td class="td_input"></td>
                    <td colspan="4"></td>
                </tr>
            </table>
            <div class="column"><span class="current">接勘信息</span></div>
            <table class="xk_table">
                <tr>
                    <td class="xk_label">指派/报告单位<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">接勘时间<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">接警人<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">指派方式<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">出警时间<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">勘验时间<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">勘验地点<font>*</font></td>
                    <td class="td_input"></td>
                    <td colspan="4"></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea">勘验事由<font>*</font></td>
                    <td colspan="5"></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02">案件发现过程<font>*</font></td>
                    <td colspan="5"></td>
                </tr>
            </table>
            <div class="column"><span class="current">现场信息</span></div>
            <table class="xk_table">
                <tr>
                    <td class="xk_label">保护人: 姓名<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">保护人: 单位<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">保护人: 职务<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">保护措施<font>*</font></td>
                    <td colspan="5" class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">保护时间<font>*</font></td>
                    <td></td>
                    <td class="xk_label">现场物品翻动程度<font>*</font></td>
                    <td class="td_input"></td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label">现场条件<font>*</font></td>
                    <td colspan="5" class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">天气状况<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">温度<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">相对湿度<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label">风向<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">光照条件<font>*</font></td>
                    <td class="td_input"></td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label">现场指挥人员<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">勘验检查人员<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">其他到达现场人员<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea">现场遗留物<font>*</font></td>
                    <td colspan="5"></td>
                </tr>
                <tr>
                    <td class="xk_label">现场处置意见<font>*</font></td>
                    <td colspan="5" class="td_input"></td>
                </tr>
                <tr>
                    <td class="xk_label_textarea02">勘验检查情况<font>*</font></td>
                    <td colspan="5"></td>
                </tr>
            </table>
            <div class="column"><span class="current">人员信息</span></div>
            <table class="xk_table">
                <tr>
                    <td class="xk_label_L">被害人/报案人<font>*</font></td>
                    <td colspan="5">
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <table class="xk_table02" id="bhr_table">
                            <tr>
                                <th class="xk_label">姓名</th>
                                <th class="xk_label">年龄</th>
                                <th class="xk_label">性别</th>
                                <th class="xk_label">身份证号</th>
                                <th class="xk_label">联系电话</th>
                                <th class="xk_label">单位</th>
                                <th class="xk_label">现住址详址</th>
                                <th class="xk_label">户籍地详址</th>
                            </tr>
                            <tbody id="add_bhr_tr">

                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="xk_label_L">见证人<font>*</font></td>
                    <td colspan="5">
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <table class="xk_table02" id="jzr_table">
                            <tr>
                                <th class="xk_label" style="width: 1.6%;">序号</th>
                                <th class="xk_label">姓名</th>
                                <th class="xk_label">性别</th>
                                <th class="xk_label">出生日期</th>
                                <th class="xk_label">单位住址</th>
                            </tr>
                            <tbody id="add_jzr_tr">

                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="xk_label_textarea">见证人备注<font>*</font></td>
                    <td colspan="5"></td>
                </tr>
            </table>
            <div class="column"><span class="current">物损信息</span></div>
            <table class="xk_table">
                <tr>
                    <td class="xk_label_L">损失物品<font>*</font></td>
                    <td colspan="5">
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <table class="xk_table02" id="sswp_table">
                            <tr>
                                <th class="xk_label" style="width: 2%;">序号</th>
                                <th class="xk_label">品名</th>
                                <th class="xk_label">厂牌和型号</th>
                                <th class="xk_label">特征描述</th>
                                <th class="xk_label">数量</th>
                                <th class="xk_label">价值/元</th>
                            </tr>
                            <tbody id="add_sswp_tr">

                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="xk_label">录像<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">录音<font>*</font></td>
                    <td class="td_input"></td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td class="xk_label">伤亡情况：亡<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">伤亡情况：伤<font>*</font></td>
                    <td class="td_input"></td>
                    <td class="xk_label">损失物品总价值<font>*</font></td>
                    <td class="td_input"></td>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>
<style type="text/css">
    #ul_ajlb_chanyong li{
        margin-bottom: 5px;
    }
</style>
</html>
<script type="text/javascript" src="jquery-easyui-1.5.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
<script type="text/javascript">;
//高度适应
var x = $(".xk_submit").height();
$(".xk_submit").css({"bottom":"0","left":"0","right":"0","position":"fixed"})
$(".content").css("margin-bottom",x);
$('.easyui-tabs1').tabs({
    tabHeight: 36
});
var bhr = 0;
$("#bhr_add_btn").click(function(){
    document.getElementById("form_bhr").reset();
    $("#div_bhr").dialog({
        title:"新增被害人/报案人",
        width:"700px",
        height:"240px",
        closed: false,
        buttons:[{
            text:"提交",
            iconCls:"icon-ok",
            handler:function(){
                var xm = $("input[name=xm]").val();
                var nl = $("input[name=nl]").val();
                var xb = $("#xb").val();
                var sfzh = $("input[name=sfzh]").val();
                var lxdh = $("input[name=lxdh]").val();
                var dw = $("input[name=dw]").val();
                var xzzxz = $("input[name=xzzxz]").val();
                var hjdxz = $("input[name=hjdxz]").val();
                var bhr_value = bhr++;
                $("#add_bhr_tr").append("<tr class='bhr_' id='"+xm+"'>"+
                "<th class='xk_label02'>"+xm+"</th>"+
                "<th class='xk_label02'>"+nl+"</th>"+
                "<th class='xk_label02'>"+xb+"</th>"+
                "<th class='xk_label02'>"+sfzh+"</th>"+
                "<th class='xk_label02'>"+lxdh+"</th>"+
                "<th class='xk_label02'>"+dw+"</th>"+
                "<th class='xk_label02'>"+xzzxz+"</th>"+
                "<th class='xk_label02'>"+hjdxz+"</th>"+
                "</tr>");
                $.parser.parse("#bhr_table");
                $("#div_bhr").dialog("close");
            }
        },{
            text:"重置",
            iconCls:"icon-redo",
            handler:function(){

            }
        },{
            text:"取消",
            iconCls:"icon-cancel",
            handler:function(){
                $("#div_bhr").dialog("close");
            }
        }
        ],
    });
    $('#div_bhr').dialog('open'); //打开添加对话框
    $('#div_bhr').window('center');//使Dialog居中显示
});
$("#bhr_edit_btn").click(function(){
    var val = $("input[name=bhr_radio]:checked").val();
    if(val != null && val.length != 0){
        $("#div_bhr").dialog({
            title:"编辑被害人/报案人",
            width:"700px",
            height:"240px",
            closed: false,
            buttons:[{
                text:"提交",
                iconCls:"icon-ok",
                handler:function(){
                    $("#div_bhr").dialog("close");
                }
            },{
                text:"重置",
                iconCls:"icon-redo",
                handler:function(){

                }
            },{
                text:"取消",
                iconCls:"icon-cancel",
                handler:function(){
                    $("#div_bhr").dialog("close");
                }
            }
            ],
        });
        $('#div_bhr').dialog('open'); //打开添加对话框
        $('#div_bhr').window('center');//使Dialog居中显示
        $("#div_bhr").panel({top:$(document).scrollTop() + ($(window).height()-250) * 0.5});
    }else{
        $.messager.alert('提示','请选择要删除的行','error');
    }
});
//删除一行被害人/报案人
function bhr_tr_del(obj){
    obj.parentNode.parentNode.remove();
}
var sswp = 0;
$("#sswp_add_btn").click(function(){
    var sswp_tr_num = ++sswp;
    $("#add_sswp_tr").append("<tr id='"+sswp_tr_num+"'>"+
        "<th class='' style='width: 2%;'><input type='text' readonly='readonly' class='xk_input04' value='"+sswp_tr_num+"'></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "</tr>");
    $.parser.parse("#sswp_table");
});
//删除一行损失物品
function sswp_tr_del(obj){
    //控制序号
    var count = $("#sswp_table").find("tr").length-1;
    //得到当前所在行
    var rows = obj.parentNode.parentNode.rowIndex;
    obj.parentNode.parentNode.remove();
    sswp--;
    if(rows <= count){
        for(var i = rows;i<=count;i++){
            var j = i-1;
            var val =$("#sswp_table tr:gt("+j+") th:eq(0)").find("input").first().val();
            var cou = val - 1;
            $("#sswp_table tr:gt("+j+") th:eq(0)").find("input").first().val(cou);
        }
    }
}
var jzr = 0;
$("#jzr_add_btn").click(function(){
    var jzr_tr_num = ++jzr;
    $("#add_jzr_tr").append("<tr id='"+jzr_tr_num+"'>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''>"+
    "<input readonly='readonly' type='text' class='xk_input04' name=''>"+
    "</th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "<th class=''><input readonly='readonly' type='text' class='xk_input04' name=''></th>"+
    "</tr>");
    $.parser.parse("#jzr_table");
});
//删除一行见证人
function jzr_tr_del(obj){
    //控制序号
    var count = $("#jzr_table").find("tr").length-1;
    //得到当前所在行
    var rows = obj.parentNode.parentNode.rowIndex;
    obj.parentNode.parentNode.remove();
    jzr--;
    if(rows <= count){
        for(var i = rows;i<=count;i++){
            var j = i-1;
            var val =$("#jzr_table tr:gt("+j+") th:eq(0)").find("input").first().val();
            var cou = val - 1;
            $("#jzr_table tr:gt("+j+") th:eq(0)").find("input").first().val(cou);
        }
    }
}
var parentWin = window.parent;
var str =  parentWin.show();
if(str == "gams"){
    $(".xk_submit").append("<button class='easyui-linkbutton' type='button' id='jbxx_cancel' iconCls='icon-redo' style='height: 24px;margin-left: 5px;'>提交</button>"+
        "<button class='easyui-linkbutton' type='button' iconCls='icon-tip' style='height: 24px;margin-left: 5px;'>关注现场</button>"+
        "<button class='easyui-linkbutton' onclick='edit_jbxx()' type='button' iconCls='icon-edit' style='height: 24px;margin-left: 5px;'>修改</button>");
}
function edit_jbxx() {
    window.location.href="jbxx";
}
var ajbh = "K5000000000002019050006";
$("td[name=ajbh]").text(ajbh);
</script>
